package v1

import (
	"ginweb/internal/controller"

	"github.com/gin-gonic/gin"
)

// RegisterProductRoutes 注册产品相关的路由
func RegisterProductRoutes(r *gin.RouterGroup, productController *controller.ProductController) {
	// 注册路由
	r.GET("/products", productController.GetProduct)
	r.POST("/products", productController.CreateProduct)
}
